package com.sgq.kotlin_learning.adapter

import android.content.Context
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.sgq.kotlin_learning.R
import com.sgq.kotlin_learning.bean.FriendListResponse

class CommonAdapter(val context: Context, datas: MutableList<FriendListResponse.Data>)
    : BaseQuickAdapter<FriendListResponse.Data, BaseViewHolder>(R.layout.common_list_item, datas) {
    override fun convert(helper: BaseViewHolder, item: FriendListResponse.Data?) {
        item?.let {
            helper.setText(R.id.commonItemTitle, it.name.trim())
        }
    }
}